package com.saturn.titan.core.repository.mybatis;

import org.apache.ibatis.annotations.Param;

import com.saturn.titan.core.bean.Role;
import com.saturn.titan.core.repository.mybatis.annotations.MyBatisRepository;
import com.saturn.titan.core.repository.mybatis.base.BaseDao;

/**
 * 通过@MapperScannerConfigurer扫描目录中的所有接口, 动态在Spring Context中生成实现.
 * 方法名称必须与Mapper.xml中保持一致.
 * 
 * @author lwh
 */
@MyBatisRepository
public interface RoleDao extends BaseDao<Role>{

	void addUserRole(@Param("user_id")Long uid, @Param("role_id")Long rid);

	void deleteUserRole(@Param("user_id")Long uid, @Param("role_id")Long rid);
	
}
